﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace XWord.Fundamental.Domain
{
    [Serializable]
    [DataContract]
    public class Entity 
    {
        public virtual string GetUniqueKey()
        {
            return string.Format("{0}.{1}", base.GetType(), this.GetHashCode());
        }

        [DataMember]
        public virtual Guid Id { get; set; }

        [DataMember]
        public virtual string Name { get; set; }

        [DataMember]
        public virtual DateTime CreateTime { get; set; }
    }
}
//: AbstractEntity<Guid>